//
//  ViewController.m
//  NetworkWrapper_Block
//
//  Created by Scott on 16/2/3.
//  Copyright © 2016年 Scott. All rights reserved.
//

#import "ViewController.h"
#import "NetworkingHandler.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
    [self handleData];
}


- (void)handleData {
    
    [NetworkingHandler networkingWithURL:@"http://api.map.baidu.com/place/v2/search?query=银行&region=大连&output=json&ak=6E823f587c95f0148c19993539b99295" completeHandle:^(NSURLResponse *response, NSData *data, id result) {
        
        
        NSLog(@"result:%@", result);
        
    }];
    
}



- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
